const APP_SIGN = 'APP_SIGN_'
const APP_TOKEN_KEY = 'APP_TOKEN_KEY'
const APP_TOKEN_KEY2 = 'APP_TOKEN_KEY2'
const APP_LocationCity = "APP_LocationCity"

export function Get_App_Token_Key() {
    return JSON.parse(localStorage.getItem(APP_TOKEN_KEY) || '{}')
}

export function Set_App_Token_Key(KEY: any) {
    return localStorage.setItem(APP_TOKEN_KEY, JSON.stringify(KEY || {}));
}

export function Get_App_Token_Key2() {
    return JSON.parse(localStorage.getItem(APP_TOKEN_KEY2) || '{}')
}

export function Set_App_Token_Key2(KEY: any) {
    return localStorage.setItem(APP_TOKEN_KEY2, JSON.stringify(KEY || {}));
}

export function GetApp_Sing() {
    return JSON.parse(localStorage.getItem(APP_SIGN) || '{}')
}

export function SetApp_Sing(KEY: any) {
    return localStorage.setItem(APP_SIGN, JSON.stringify(KEY || {}))
}

export function Get_LocationCity() {
    const LocationCity = localStorage.getItem(APP_LocationCity)
    return LocationCity ? JSON.parse(LocationCity) : ""
}

export function Set_LocationCity(KEY: any) {
    return localStorage.setItem(APP_LocationCity, JSON.stringify(KEY || {}))
}